"""
from selenium import webdriver
from selenium.webdriver.common.by import By


driver = webdriver.Chrome()
driver.get("http://mall.lemonban.com:3344/")
driver.maximize_window()
driver.find_element(By.LINK_TEXT, '登录').click()
# driver.find_element(By.XPATH,'//a[text()="登录"]').click()
driver.find_element(By.XPATH, '//input[@placeholder="请输入手机号/用户名"] ').send_keys("lemon_py")
driver.find_element(By.XPATH, '//input[@placeholder="请输入密码"]').send_keys('12345678')
driver.find_element(By.XPATH, '//a[@class="login-button"and text()="登录"]').click()
"""

# driver.close()

# 练习

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get("http://mall.lemonban.com:3344/")
driver.maximize_window()
# ①driver.find_element(By.XPATH,'//a[@class="link-a" and text()="登录"]').click()
# ②driver.find_element(By.LINK_TEXT,"登录").click()
driver.find_element(By.XPATH,"//a[text()='登录']").click()
driver.find_element(By.XPATH,"//input[@placeholder='请输入手机号/用户名']").send_keys("lemon_py")
driver.find_element(By.XPATH,'//input[@placeholder="请输入密码"]').send_keys("12345678")
driver.find_element(By.XPATH,'//a[@class="login-button" and text()="登录"]').click()

driver.close()


